package com.pzb.page.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pzb.page.mapper.PgPageItemHotspotareaMapper;
import com.pzb.page.domain.PgPageItemHotspotarea;
import com.pzb.page.service.IPgPageItemHotspotareaService;

/**
 * 热区切图Service业务层处理
 * 
 * @author pzb
 * @date 2021-09-29
 */
@Service
public class PgPageItemHotspotareaServiceImpl implements IPgPageItemHotspotareaService 
{
    @Autowired
    private PgPageItemHotspotareaMapper pgPageItemHotspotareaMapper;

    /**
     * 查询热区切图列表
     * 
     * @param pgPageItemHotspotarea 热区切图
     * @return 热区切图
     */
    @Override
    public List<PgPageItemHotspotarea> selectPgPageItemHotspotareaList(PgPageItemHotspotarea pgPageItemHotspotarea)
    {
        return pgPageItemHotspotareaMapper.selectPgPageItemHotspotareaList(pgPageItemHotspotarea);
    }

    /**
     * 根据模块id删除
     *
     * @param
     * @return
     */
    @Override
    public int deleteHotspotareaByItemId(Long itemId) {
        return pgPageItemHotspotareaMapper.deleteHotspotareaByItemId(itemId);
    }

    /**
     * 批量新增
     *
     * @param
     * @return
     */
    @Override
    public int batchSaveHotspotarea(List<PgPageItemHotspotarea> hotspotareaList) {
        return pgPageItemHotspotareaMapper.batchSaveHotspotarea(hotspotareaList);
    }

}
